<?php slot('page-title', 'Vertriebswünsche')?>

<style>
<!--
#sellwish-button {
	font-weight: bold;
	color: white;
}
-->
</style>

<script type="text/javascript">
<!--
$().ready(function(){ 

	 $(".jtable th").each(function(){
		  $(this).addClass("ui-widget-header");
	  });
	  
	 $(".jtable td").each(function(){
		  $(this).addClass("ui-widget-content");
	  });
	  
	 $(".jtable tr").hover(
	     function()
	     {
	  	    $(this).children("td").addClass("ui-state-highlight");
	     },
	     function()
	     {
	  	    $(this).children("td").removeClass("ui-state-highlight");
	     }
	    );
	    
	 $(".jtable tr").click(function(){
	  	// $(this).children("td").toggleClass("ui-state-highlight");
	  });
	 
	}); 
//-->
</script>

<form
	action="<?php echo url_for('sellwish/savesellwish')?>" method="post">
	<table id="sellwish" class="jtable">
		<!-- <tr>  -->
		<!-- <th colspan="5"><h2>Vertriebsw&uuml;nsche</h2></th>  -->
		<!--<th>&nbsp;</th>-->
		<!--  <th colspan="3"><h2>Direktverkäufe</h2></th>-->
		<!-- </tr>  -->
		<tr>
			<th>Produkt</th>
			<th>Periode <?php echo $n+1;?></th>
			<th>Periode <?php echo $n+2;?></th>
			<th>Periode <?php echo $n+3;?></th>
			<th>Periode <?php echo $n+4;?></th>
			<!-- <td>&nbsp;</td>  -->
			<!--  <th>Menge</th>-->
			<!--  <th>Preis</th>-->
			<!--  <th>Konventionalstrafe</th>-->
		</tr>
		<tr>
			<td><input type="hidden" value="1">P1</td>
			<td><input id="p1n" name="p1n" type="text" placeholder="0"></td>
			<td><input id="p1n1" name="p1n1" type="text" placeholder="0"></td>
			<td><input id="p1n2" name="p1n2" type="text" placeholder="0"></td>
			<td><input id="p1n3" name="p1n3" type="text" placeholder="0"></td>
			<!-- <td>&nbsp;</td>  -->
			<!--  	<td><input id="dvp1m" name="dvp1m" type="text" value="0"></td>-->
			<!--  	<td><input id="dvp1p" name="dvp1p" type="text" value="0.0"></td>-->
			<!--  	<td><input id="dvp1k" name="dvp1k" type="text" value="0.0"></td>-->
		</tr>
		<tr>
			<td><input type="hidden" value="1">P2</td>
			<td><input id="p2n" name="p2n" type="text" placeholder="0"></td>
			<td><input id="p2n1" name="p2n1" type="text" placeholder="0"></td>
			<td><input id="p2n2" name="p2n2" type="text" placeholder="0"></td>
			<td><input id="p2n3" name="p2n3" type="text" placeholder="0"></td>
			<!-- <td>&nbsp;</td>  -->
			<!--  	<td><input id="dvp2m" name="dvp2m" type="text" value="0"></td>-->
			<!--  	<td><input id="dvp2p" name="dvp2p" type="text" value="0.0"></td>-->
			<!--  	<td><input id="dvp2k" name="dvp2k" type="text" value="0.0"></td>-->
		</tr>
		<tr>
			<td><input type="hidden" value="1">P3</td>
			<td><input id="p3n" name="p3n" type="text" placeholder="0"></td>
			<td><input id="p3n1" name="p3n1" type="text" placeholder="0"></td>
			<td><input id="p3n2" name="p3n2" type="text" placeholder="0"></td>
			<td><input id="p3n3" name="p3n3" type="text" placeholder="0"></td>
			<!-- <td>&nbsp;</td>  -->
			<!--  <td><input id="dvp3m" name="dvp3m" type="text" value="0"></td>-->
			<!--  <td><input id="dvp3p" name="dvp3p" type="text" value="0.0"></td>-->
			<!--  <td><input id="dvp3k" name="dvp3k" type="text" value="0.0"></td>-->
		</tr>
	</table>
	<!-- <br> <b>Direktverkaeufe:</b> <input id="dv" name="dv" type="text"
		value="0"><br> <br>  -->
	<a href="<?php echo url_for('import/index')?>" class="button">zurück</a>
	&nbsp;
	<button class="button" type="submit">weiter</button>
</form>
